#ifndef __KEY_H
#define __KEY_H

#include "sys.h"

#define WKUP_DOWN       1
#define WKUP_UP         2
#define EC11_DOWN       3
#define EC11_UP         4
#define EC11_S_UP       5
#define EC11_S_DOWN     6

#define K_WKUP              PAin(0)
#define K_EC11              PCin(13)

void key_init(void);
int8_t key_get_status(void);

// void KEY_ExtiInit(void);
// void WKUP_Init(void);
#endif
